<extend name="Public:base" />

<block name="content">

    <form action="{:U('MasterMaintain/index')}" method="post">
     <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover search-form">
            <thead>
                <tr>
                    <th>
                    时间：  <input id="time1" name="time1" value="{:I('time1')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                    -- <input id="time2" name="time2" value="{:I('time2')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                    <input class="marginL10" name="order_id" type="text" value="{:I('order_id')}"  placeholder="输入查找订单号" value="{:I('order_id')}" />
                    <input class="marginL10" name="master_id" type="text" value="{:I('master_id')}"  placeholder="师傅账号" value="{:I('phone')}" />
                    <input class="marginL10 width100" name="master_name" type="text" value="{:I('master_name')}"  placeholder="师傅姓名" value="{:I('phone')}" />
                    <select class="marginL10 width100" name="money_type">
                        <option value="all">到账状态</option>
                        <option value="1"  {$money_type==1?'selected':''}>未到账</option>
                        <option value="2"  {$money_type==2?'selected':''}>已到账</option>
                    </select>
                    <input class="btn btn-primary radius5 btn-sm" type="submit" value="查询"/>
                    <a class="btn btn-primary radius5 btn-sm" href="{:U('MasterMaintain/excelout')}">导出</a>
                    <!--  <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/index')}">搜索</a>-->
                   </th>
                </tr>
            </thead>
        </table>
     </div>
    </form>
    师傅收入总金额：{$total}元
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover" id="mytable">

            <thead>
            <tr>
                <th>订单编号</th>
                <th>师傅账号</th>
                <th>师傅名称</th>
                <th>维修金（元）</th>
                <th>维修金支付时间</th>
                <th>到账状态</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="ba" key="k">
                <tr>
                    <td>{$ba['repair_order_num_alias']}</td>
                    <td>{$ba['worker_tel']}</td>
                    <td>{$ba['id_name']}</td>
                    <td>{$ba['maintain']}</td>
                    <td>{$ba['pay_time']|date="Y-m-d H:i:s",###}</td>
                    <td>{$ba['money_type']==1?'未到账':'已到账'}</td>
                </tr>
            </volist>
            <tr>
                <td colspan="20" class="page">{$page}</td>
            </tr>
            </tbody>
        </table>
    </div>
</block>
<block name="css">
</block>
<block name="javascript">
    <script>

    </script>
</block>